package io.renren.modules.ranking.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.ranking.dao.RoadAccidentsDao;
import io.renren.modules.ranking.entity.RoadAccidentsEntity;
import io.renren.modules.ranking.service.RoadAccidentsService;



@Service("roadAccidentsService")
public class RoadAccidentsServiceImpl implements RoadAccidentsService {
	@Autowired
	private RoadAccidentsDao roadAccidentsDao;
	
	@Override
	public RoadAccidentsEntity queryObject(Integer id){
		return roadAccidentsDao.queryObject(id);
	}
	
	@Override
	public List<RoadAccidentsEntity> queryList(Map<String, Object> map){
		return roadAccidentsDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return roadAccidentsDao.queryTotal(map);
	}
	
	@Override
	public void save(RoadAccidentsEntity roadAccidents){
		roadAccidentsDao.save(roadAccidents);
	}
	
	@Override
	public void update(RoadAccidentsEntity roadAccidents){
		roadAccidentsDao.update(roadAccidents);
	}
	
	@Override
	public void delete(Integer id){
		roadAccidentsDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		roadAccidentsDao.deleteBatch(ids);
	}
	
}
